<template>
  <div>
    <h1>客官，看看喜欢哪一个？</h1>
    <ul>
      <li v-for="girl in girls" >
        <a @click="call(girl)">{{girl}}</a>
      </li>
    </ul>

  </div>

</template>

<script>
export default {
  name: "whore",
  props: {
    girls: {
      type: Array,
      required: true
    }
  },methods:{
    call(e){
      this.$emit('happy',e)
    }
  }
}
</script>

<style scoped>
div {
  width: 60%;
  margin: 10px auto;
  text-align: center;
  background-color: lightpink;
}

li {
  list-style-type: none;
  display: inline-block;
  margin-right: 10px;
}
</style>
